c86697272b87ccb50ed7de09aa360e8c12c77d0f,src/main/java/macaca/client/commands/Element.java,Element,getText,#,56
Before Change
}
public String getText() throws Exception {
String text = (String) utils.getRequest(DriverCommand.GET_ELEMENT_TEXT
.replace(":sessionId", driver.getSessionId()).replace(":elementId", driver.getElementId()));
return text;
}
After Change
}
public String getText() throws Exception {
JSONObject jsonObj = new JSONObject();
jsonObj.put("sessionId", driver.getSessionId());
jsonObj.put("elementId", driver.getElementId());
String text = (String) utils.getRequest(DriverCommand.GET_ELEMENT_TEXT, jsonObj);
return text;
}